<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
	layout:decorator="v2/layout">
  <head>
    <title>欢迎进入管理系统</title>
    <script type="text/javascript">
    	$(function(){
    		setMenu("首页", true);
    		$.ajaxData({url:"index-count",success:function(data){
    			data.applyCount = (data.applyCount==null?0:data.applyCount)
    			data.dayApplyCount = (data.dayApplyCount==null?0:data.dayApplyCount)
    			data.blogCount = (data.blogCount==null?0:data.blogCount)
    			data.dayBlogCount = (data.dayBlogCount==null?0:data.dayBlogCount)
    			data.moneyCount = (data.moneyCount==null?0:data.moneyCount)
    			data.dayMoneyCount = (data.dayMoneyCount==null?0:data.dayMoneyCount)
    			data.lookCount = (data.lookCount==null?0:data.lookCount)
    			data.dayLookCount = (data.dayLookCount==null?0:data.dayLookCount)
    			data.openCount = (data.openCount==null?0:data.openCount)
    			data.dayOpenCount = (data.dayOpenCount==null?0:data.dayOpenCount)
    			data.hdCount = (data.hdCount==null?0:data.hdCount)
    			data.dayHDCount = (data.dayHDCount==null?0:data.dayHDCount)
    			$("#indexCount").loadData(data);
    		}})
    	});
    </script>
    <style>

    </style>
  </head>
  <body>
    <div layout:fragment="content">
    	<div class="info">
    		
   			<div class="info-group">
   				<label class="info-title"><strong>机构名称：</strong></label>
   				<span class="info-view" th:text="${session.user.name}"></span>
   			</div>
   			<div class="info-group">
   				<label class="info-title"><strong>机构ID：</strong></label>
   				<span class="info-view" th:text="${session.user.number}"></span>
   			</div>
    	</div>
    	<div class="info info-full">
    		<div class="stat">
	            <div class="stat-top">
	                <span class="stat-title"><strong>关键数据</strong></span>
	            </div>
	            <div class="stat-content">
	            	<script type="text/template" id="indexCount">
	            	<div class="stat-row">
		                <div class="stat-group">
		                    <div class="stat-group-title">报名人数</div>
		                    <div class="stat-group-count"><strong>#{applyCount}#</strong></div>
		                    <div class="stat-group-day">
		                        <label>今日</label>
		                        <span>#{dayApplyCount}#</span>
		                    </div>
		                </div>
		                <div class="stat-group">
		                    <div class="stat-group-title">作品帖数</div>
		                    <div class="stat-group-count"><strong>#{blogCount}#</strong></div>
		                    <div class="stat-group-day">
		                        <label>今日</label>
		                        <span>#{dayBlogCount}#</span>
		                    </div>
		                </div>
		                <div class="stat-group">
		                    <div class="stat-group-title">收费总数</div>
		                    <div class="stat-group-count"><strong>#{moneyCount}#</strong></div>
		                    <div class="stat-group-day">
		                        <label>今日</label>
		                        <span>#{dayMoneyCount}#</span>
		                    </div>
		                </div>
		                <div class="stat-group">
		                    <div class="stat-group-title">浏览总数</div>
		                    <div class="stat-group-count"><strong>#{lookCount}#</strong></div>
		                    <div class="stat-group-day">
		                        <label>今日</label>
		                        <span>#{dayLookCount}#</span>
		                    </div>
		                </div>
		                <div class="stat-group">
		                    <div class="stat-group-title">打开总数</div>
		                    <div class="stat-group-count"><strong>#{openCount}#</strong></div>
		                    <div class="stat-group-day">
		                        <label>今日</label>
		                        <span>#{dayOpenCount}#</span>
		                    </div>
		                </div>
		                <div class="stat-group">
		                    <div class="stat-group-title">互动总数</div>
		                    <div class="stat-group-count"><strong>#{hdCount}#</strong></div>
		                    <div class="stat-group-day">
		                        <label>今日</label>
		                        <span>#{dayHDCount}#</span>
		                    </div>
		                </div>
	                </div>
	                </script>
	            </div>
	
	        </div>
    	</div>
    	
    	
    	<!-- <div class="info info-full">
    		<div class="stat">
	            <div class="stat-top">
	                <span class="stat-title"><strong> 正在进行的比赛</strong></span>
	            </div>
	            <div class="stat-content">
	                <div class="eval">
		    			<div class="eval-view">
		    				<div class="eval-item">
		    					<span class="eval-state"></span>
		    					<img class="eval-img" src="http://7xpx8n.com1.z0.glb.clouddn.com/pic_album_ad_21_201801151629175450_wh540x761.jpg"/>
		    					<div class="eval-desc text-gra">
		    						<div class="eval-desc-title">2018第七届CYAA梦想杯全国青少儿</div>
		    						<div class="eval-desc-text"><label> 地点： </label>全国</div>
		    						<div class="eval-desc-text"><label> 时间： </label>2018.1.15-2018.5.30</div>
		    						<div class="eval-desc-text"><label> 主办方： </label>CYAA梦想杯组委会</div>
		    						<div class="eval-desc-text"><label> 报名费： </label> ¥60</div>
		    					</div>
		    				</div>
		    			</div>
		    			<div class="eval-view">
		    				<div class="eval-item">
		    					<span class="eval-state"></span>
		    					<img class="eval-img" src="http://7xpx8n.com1.z0.glb.clouddn.com/pic_album_ad_21_201801151629175450_wh540x761.jpg"/>
		    					<div class="eval-desc text-gra">
		    						<div class="eval-desc-title">2018第七届CYAA梦想杯全国青少儿</div>
		    						<div class="eval-desc-text"><label> 地点： </label>全国</div>
		    						<div class="eval-desc-text"><label> 时间： </label>2018.1.15-2018.5.30</div>
		    						<div class="eval-desc-text"><label> 主办方： </label>CYAA梦想杯组委会</div>
		    						<div class="eval-desc-text"><label> 报名费： </label> ¥60</div>
		    					</div>
		    				</div>
		    			</div>
		    			<div class="eval-view">
		    				<div class="eval-item">
		    					<span class="eval-state"></span>
		    					<img class="eval-img" src="http://7xpx8n.com1.z0.glb.clouddn.com/pic_album_ad_21_201801151629175450_wh540x761.jpg"/>
		    					<div class="eval-desc text-gra">
		    						<div class="eval-desc-title">2018第七届CYAA梦想杯全国青少儿</div>
		    						<div class="eval-desc-text"><label> 地点： </label>全国</div>
		    						<div class="eval-desc-text"><label> 时间： </label>2018.1.15-2018.5.30</div>
		    						<div class="eval-desc-text"><label> 主办方： </label>CYAA梦想杯组委会</div>
		    						<div class="eval-desc-text"><label> 报名费： </label> ¥60</div>
		    					</div>
		    				</div>
		    			</div>
		    			<div class="eval-view">
		    				<div class="eval-item">
		    					<span class="eval-state"></span>
		    					<img class="eval-img" src="http://7xpx8n.com1.z0.glb.clouddn.com/pic_album_ad_21_201801151629175450_wh540x761.jpg"/>
		    					<div class="eval-desc text-gra">
		    						<div class="eval-desc-title">2018第七届CYAA梦想杯全国青少儿</div>
		    						<div class="eval-desc-text"><label> 地点： </label>全国</div>
		    						<div class="eval-desc-text"><label> 时间： </label>2018.1.15-2018.5.30</div>
		    						<div class="eval-desc-text"><label> 主办方： </label>CYAA梦想杯组委会</div>
		    						<div class="eval-desc-text"><label> 报名费： </label> ¥60</div>
		    					</div>
		    				</div>
		    			</div>
		    			<div class="eval-view">
		    				<div class="eval-item">
		    					<span class="eval-state"></span>
		    					<img class="eval-img" src="http://7xpx8n.com1.z0.glb.clouddn.com/pic_album_ad_21_201801151629175450_wh540x761.jpg"/>
		    					<div class="eval-desc text-gra">
		    						<div class="eval-desc-title">2018第七届CYAA梦想杯全国青少儿</div>
		    						<div class="eval-desc-text"><label> 地点： </label>全国</div>
		    						<div class="eval-desc-text"><label> 时间： </label>2018.1.15-2018.5.30</div>
		    						<div class="eval-desc-text"><label> 主办方： </label>CYAA梦想杯组委会</div>
		    						<div class="eval-desc-text"><label> 报名费： </label> ¥60</div>
		    					</div>
		    				</div>
		    			</div>
		    		</div>
				</div>
	        </div>
    	</div> -->
    </div>
  </body>
</html>